<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!doctype html>
<html lang="zh" id="html">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动态展示</title>
    <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,800,800italic,700italic" rel="stylesheet">
    <link href="<%=basePath%>static/css/feedify.min.css" rel="stylesheet">
    <link href="<%=basePath%>static/css/feedify-theme.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>static/css/default.css">
    <!-- 富文本  -->
    <link href="<%=basePath%>static/css/quill.snow.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        .ql-editor{color:#333;white-space: normal;}
        .ql-editor img{width: 100%;}
    </style>
</head>
<body>

        <div class="container">
          <div class="row">
            <div class="col-md-8 col-md-offset-2">
              <div class="feedify">
              <section class="feedify-item">
                <header style="padding-left: 20px; border-bottom: 1px solid #ccc; margin:0 -20px 10px -20px; position: relative;">
                 <!--  <img style="margin-bottom: 10px;" alt="" src="img/SBD.jpg" class="img-circle pull-left"> -->
                   <h2 style="color:#000;text-align: center;">
                       ${title}
                   </h2>
                  <div class="writer_left">作者:${username}</div>
                  <div class="time"><fmt:formatDate value="${createtime}" type="date"
													        pattern="yyyy/MM/dd" /></div>
                </header>
                <div class="feedify-item-body">
                  <!-- <h2 style="text-align: center; color:#000">
                     关于随便打升级明细
                   </h2> -->
                  <a href="//${url}" target="_blank"><img src="${contentpic}" class="img-responsive" style="width:100%"></a>
                </div>

                <footer>
                  <div class="legend ql-editor">
                    <p>${content}</p>
                  </div>

                </footer>
              </section>

              </div>
            </div>
          </div>
        </div>

    <script src="<%=basePath%>static/js/jquery-2.1.1.min.js"></script>
	<script src="<%=basePath%>static/js/feedify.min.js"></script>
    <script>
    $(function() {
        var hbody = document.body.scrollHeight ;
        if(hbody < 950){
        	html.style.height = "100%";
        }
     });
    
    $(function() {
      $('.feedify').feedify();
    });

    </script>
</body>
</html>